﻿#region Using directives

using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;

#endregion

namespace UFIDA.U9.Cust.U9Demo.DeliverUI
{
	[Serializable]
	public partial class FindPOShipLineUIModelModel : UIModel
	{
		#region Constructor
		public FindPOShipLineUIModelModel() : base("FindPOShipLineUIModel")
		{
			InitClass();
			this.SetResourceInfo("f1478bb7-d874-41c4-a14a-49da7ae66de1");
            try{
			    AfterInitModel();
            }catch(Exception exception){
              IUIModel model = this;
		      this.ErrorMessage.SetErrorMessage(ref model,exception);
			}
		}

		//just for Clone 
		private FindPOShipLineUIModelModel(bool isInit) : base("FindPOShipLineUIModel")
		{}
		protected override IUIModel CreateCloneInstance()
		{
			return new FindPOShipLineUIModelModel(false);
		}
		#endregion
		#region member
		#region views
		private QueryPOShipLineViewView viewQueryPOShipLineView;			
		private POShipLineDataViewView viewPOShipLineDataView;			
		#endregion
		
		#region links
		#endregion
		
		#region properties
		#endregion
		#endregion

		#region property
		public QueryPOShipLineViewView QueryPOShipLineView
		{
			get { return (QueryPOShipLineViewView)this["QueryPOShipLineView"]; }
		}
		public POShipLineDataViewView POShipLineDataView
		{
			get { return (POShipLineDataViewView)this["POShipLineDataView"]; }
		}
		
		#region RealViews
		#endregion
		
	
		#endregion

		#region function
		private void InitClass()
		{
			this.viewQueryPOShipLineView = new QueryPOShipLineViewView(this);
			this.viewQueryPOShipLineView.SetResourceInfo("ddd5d210-4504-44a2-af7b-1dbfaf2630be");
			this.Views.Add(this.viewQueryPOShipLineView);			
			this.viewPOShipLineDataView = new POShipLineDataViewView(this);
			this.viewPOShipLineDataView.SetResourceInfo("ad40090b-bd4c-40e9-8c28-3acb7cb25eb8");
			this.Views.Add(this.viewPOShipLineDataView);			

			
		}

		public override string AssemblyName
		{
			get { return "UFIDA.U9.Cust.U9Demo.DeliverUI"; }
		}
		
		#endregion
		private void OnValidate_DefualtImpl()
    {
    }

	}


	[Serializable]
	public partial class QueryPOShipLineViewView : UIView
	{
		#region Constructor
		public QueryPOShipLineViewView(IUIModel model) : base(model,"QueryPOShipLineView","", true)
		{
			InitClass();
		}
		//构造空实例,不进行初始化.目前为Clone使用.
		private QueryPOShipLineViewView():base(null,"QueryPOShipLineView","", true)
		{
		}
		protected override IUIView CreateCloneInstance()
		{
			return new QueryPOShipLineViewView();
		}
		#endregion

		#region fiels property filter
		public IUIField FieldID
		{
			get { return this.Fields["ID"]; }
		}
		public IUIField FieldCreatedOn
		{
			get { return this.Fields["CreatedOn"]; }
		}
		public IUIField FieldCreatedBy
		{
			get { return this.Fields["CreatedBy"]; }
		}
		public IUIField FieldModifiedOn
		{
			get { return this.Fields["ModifiedOn"]; }
		}
		public IUIField FieldModifiedBy
		{
			get { return this.Fields["ModifiedBy"]; }
		}
		public IUIField FieldSysVersion
		{
			get { return this.Fields["SysVersion"]; }
		}
		public IUIField FieldPO_DocNo
		{
			get { return this.Fields["PO_DocNo"]; }
		}
		public IUIField FieldSupplier_Code
		{
			get { return this.Fields["Supplier_Code"]; }
		}
		public IUIField FieldItem_Code
		{
			get { return this.Fields["Item_Code"]; }
		}
		public IUIField FieldPO
		{
			get { return this.Fields["PO"]; }
		}
		public IUIField FieldSupplier
		{
			get { return this.Fields["Supplier"]; }
		}
		public IUIField FieldItem
		{
			get { return this.Fields["Item"]; }
		}
		public IUIField FieldSupplier_Name
		{
			get { return this.Fields["Supplier_Name"]; }
		}
		public IUIField FieldItem_Name
		{
			get { return this.Fields["Item_Name"]; }
		}
		public IUIField FieldItemCode
		{
			get { return this.Fields["ItemCode"]; }
		}
		public IUIField FieldSupplierCode
		{
			get { return this.Fields["SupplierCode"]; }
		}
		public IUIField FieldPODocNo
		{
			get { return this.Fields["PODocNo"]; }
		}


		[Obsolete("请使用CurrentFilter属性，这个方法有可能会导致强弱类型转换出错")]
		public QueryPOShipLineViewDefaultFilterFilter DefaultFilter
		{
			get { return (QueryPOShipLineViewDefaultFilterFilter)this.CurrentFilter; }
		}
		#endregion

		#region Init
		private void InitClass()
		{
			UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","b0d278a7-7c4c-42a9-825c-b8ee8b98cd06");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","237a31e6-125e-4e68-aebe-75d2e4f5a1c5");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","a7a2d684-163e-493f-894c-64b554d0757a");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","74e3dbcd-febe-49ea-8ef0-2863d8e50f35");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","e4e76ccf-e335-4e5a-b1f3-e6997abe6350");
			UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","c7e7e1da-61e8-4a86-ab84-fad348e1c2f3");
			UIModelRuntimeFactory.AddNewUIField(this,"PO_DocNo", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","4ae35da0-83e2-4c18-9451-35f2f6bc10fb");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier_Code", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","ebc3fe1a-61e8-4e51-968f-210181895a4b");
			UIModelRuntimeFactory.AddNewUIField(this,"Item_Code", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","19285bbd-2681-4225-a9e1-43c25f189a83");
			UIModelRuntimeFactory.AddNewUIField(this,"PO", typeof(Int64), false,"","UFIDA.U9.PM.PO.PurchaseOrder", "", false,false, false, "",false,(UIFieldType)4,"c0104c25-17ac-4d32-97fb-8a5e6129df48","97df83af-8ca5-42f6-ac71-4cbddb480c4b");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier", typeof(Int64), false,"","UFIDA.U9.CBO.SCM.Supplier.Supplier", "", false,false, false, "",false,(UIFieldType)4,"ac3510e5-3337-46d4-b41c-46ac40f343e1","d39e5e4c-a611-4bb2-a65d-40528b8fc6f9");
			UIModelRuntimeFactory.AddNewUIField(this,"Item", typeof(Int64), false,"","UFIDA.U9.CBO.SCM.Item.ItemMaster", "", false,false, false, "",false,(UIFieldType)4,"636d3e47-48aa-47fc-aca4-e6322bce775b","942e428a-82f8-496b-8752-4b4ad8c43b5b");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier_Name", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","21c75b1e-c398-4f2b-aa0b-0059eab58a4b");
			UIModelRuntimeFactory.AddNewUIField(this,"Item_Name", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","d51b38c2-f605-4d8c-a66e-b2054dd611fc");
			UIModelRuntimeFactory.AddNewUIField(this,"ItemCode", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","84848e71-25ff-4f54-9e52-b68f4a33aba9");
			UIModelRuntimeFactory.AddNewUIField(this,"SupplierCode", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","8aed7ce0-6785-4da6-a361-7892bde7a819");
			UIModelRuntimeFactory.AddNewUIField(this,"PODocNo", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","eb012a7f-cca9-496d-b543-6c150fd87d9e");


			this.CurrentFilter = new QueryPOShipLineViewDefaultFilterFilter(this);
		}
		#endregion
		
		#region override method
		protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
		{
			return new QueryPOShipLineViewRecord(builder);
		}
		#endregion

		#region new method
		public new QueryPOShipLineViewRecord FocusedRecord
		{
			get { return (QueryPOShipLineViewRecord)base.FocusedRecord ; }
			set { base.FocusedRecord = value ; }
		}
		public new QueryPOShipLineViewRecord AddNewUIRecord()
		{	
			return (QueryPOShipLineViewRecord)base.AddNewUIRecord();
		}
		public new QueryPOShipLineViewRecord NewUIRecord()
		{	
			return (QueryPOShipLineViewRecord)base.NewUIRecord();
		}
		#endregion 

	}

	[Serializable]
	public class QueryPOShipLineViewRecord : UIRecord
	{
		#region Constructor
		public QueryPOShipLineViewRecord(IUIRecordBuilder builder):base(builder)
		{
		}
		private QueryPOShipLineViewView uiviewQueryPOShipLineView
		{
			get { return (QueryPOShipLineViewView)this.ContainerView; }
		}
		protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
		{
			return new QueryPOShipLineViewRecord(builder);
		}
		#endregion

		#region property
		
		
		public  Int64 ID
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldID] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewQueryPOShipLineView.FieldID);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldID] = value;
			}
		}
		
		
		public  DateTime CreatedOn
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldCreatedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewQueryPOShipLineView.FieldCreatedOn);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldCreatedOn] = value;
			}
		}
		
		
		public  String CreatedBy
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldCreatedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldCreatedBy);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldCreatedBy] = value;
			}
		}
		
		
		public  DateTime ModifiedOn
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldModifiedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewQueryPOShipLineView.FieldModifiedOn);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldModifiedOn] = value;
			}
		}
		
		
		public  String ModifiedBy
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldModifiedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldModifiedBy);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldModifiedBy] = value;
			}
		}
		
		
		public new Int64 SysVersion
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldSysVersion] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewQueryPOShipLineView.FieldSysVersion);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldSysVersion] = value;
			}
		}
		
		
		public  String PO_DocNo
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldPO_DocNo] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldPO_DocNo);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldPO_DocNo] = value;
			}
		}
		
		
		public  String Supplier_Code
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldSupplier_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldSupplier_Code);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldSupplier_Code] = value;
			}
		}
		
		
		public  String Item_Code
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldItem_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldItem_Code);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldItem_Code] = value;
			}
		}
		
		
		public  Int64 PO
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldPO] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewQueryPOShipLineView.FieldPO);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldPO] = value;
			}
		}
		
		
		public  Int64 Supplier
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldSupplier] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewQueryPOShipLineView.FieldSupplier);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldSupplier] = value;
			}
		}
		
		
		public  Int64 Item
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldItem] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewQueryPOShipLineView.FieldItem);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldItem] = value;
			}
		}
		
		
		public  String Supplier_Name
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldSupplier_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldSupplier_Name);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldSupplier_Name] = value;
			}
		}
		
		
		public  String Item_Name
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldItem_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldItem_Name);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldItem_Name] = value;
			}
		}
		
		
		public  String ItemCode
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldItemCode] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldItemCode);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldItemCode] = value;
			}
		}
		
		
		public  String SupplierCode
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldSupplierCode] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldSupplierCode);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldSupplierCode] = value;
			}
		}
		
		
		public  String PODocNo
		{
			get{
				//object value = this[this.uiviewQueryPOShipLineView.FieldPODocNo] ;
				//return (String)value;
				return GetValue<String>(this.uiviewQueryPOShipLineView.FieldPODocNo);
			}
			set{
				this[this.uiviewQueryPOShipLineView.FieldPODocNo] = value;
			}
		}
		#endregion
	}
	
	[Serializable]
	public class QueryPOShipLineViewDefaultFilterFilter : UIFilter
	{
		#region Constructor
		public QueryPOShipLineViewDefaultFilterFilter(IUIView view) 
			: base("DefaultFilter",view,@"",@"")
		{
			InitClass();
		}
		//for Clone Constructor
		private QueryPOShipLineViewDefaultFilterFilter()
			: base("DefaultFilter",null,"","")
		{}
		protected override IUIFilter CreateCloneInstance()
		{
			return new QueryPOShipLineViewDefaultFilterFilter();
		}
		#endregion

		#region property
		#endregion
		
		#region function
		private void InitClass()
		{
		}
		#endregion

	}



	[Serializable]
	public partial class POShipLineDataViewView : UIView
	{
		#region Constructor
		public POShipLineDataViewView(IUIModel model) : base(model,"POShipLineDataView","", true)
		{
			InitClass();
		}
		//构造空实例,不进行初始化.目前为Clone使用.
		private POShipLineDataViewView():base(null,"POShipLineDataView","", true)
		{
		}
		protected override IUIView CreateCloneInstance()
		{
			return new POShipLineDataViewView();
		}
		#endregion

		#region fiels property filter
		public IUIField FieldID
		{
			get { return this.Fields["ID"]; }
		}
		public IUIField FieldCreatedOn
		{
			get { return this.Fields["CreatedOn"]; }
		}
		public IUIField FieldCreatedBy
		{
			get { return this.Fields["CreatedBy"]; }
		}
		public IUIField FieldModifiedOn
		{
			get { return this.Fields["ModifiedOn"]; }
		}
		public IUIField FieldModifiedBy
		{
			get { return this.Fields["ModifiedBy"]; }
		}
		public IUIField FieldSysVersion
		{
			get { return this.Fields["SysVersion"]; }
		}
		public IUIField FieldPO
		{
			get { return this.Fields["PO"]; }
		}
		public IUIField FieldItem
		{
			get { return this.Fields["Item"]; }
		}
		public IUIField FieldSupplier
		{
			get { return this.Fields["Supplier"]; }
		}
		public IUIField FieldPO_DocNo
		{
			get { return this.Fields["PO_DocNo"]; }
		}
		public IUIField FieldSupplier_Code
		{
			get { return this.Fields["Supplier_Code"]; }
		}
		public IUIField FieldSupplier_Name
		{
			get { return this.Fields["Supplier_Name"]; }
		}
		public IUIField FieldItem_Code
		{
			get { return this.Fields["Item_Code"]; }
		}
		public IUIField FieldItem_Name
		{
			get { return this.Fields["Item_Name"]; }
		}
		public IUIField FieldQty
		{
			get { return this.Fields["Qty"]; }
		}
		public IUIField FieldPrice
		{
			get { return this.Fields["Price"]; }
		}
		public IUIField FieldDocLineNo
		{
			get { return this.Fields["DocLineNo"]; }
		}
		public IUIField FieldDocSubLineNo
		{
			get { return this.Fields["DocSubLineNo"]; }
		}
		public IUIField FieldPOShipLine
		{
			get { return this.Fields["POShipLine"]; }
		}


		[Obsolete("请使用CurrentFilter属性，这个方法有可能会导致强弱类型转换出错")]
		public POShipLineDataViewDefaultFilterFilter DefaultFilter
		{
			get { return (POShipLineDataViewDefaultFilterFilter)this.CurrentFilter; }
		}
		#endregion

		#region Init
		private void InitClass()
		{
			UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","265eccdc-56c0-4a33-81b5-1c20f9f2ddaa");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","07774953-44db-4778-9202-725f8295a545");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","22aed8af-d35d-4ccf-8816-af5057253112");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","44482ef6-d20a-47ba-bc85-cf474440a006");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","8776067c-8e07-4fce-b8e5-8af8ffb67232");
			UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","b80e58d9-6a9c-4b9f-9c15-af01fb289012");
			UIModelRuntimeFactory.AddNewUIField(this,"PO", typeof(Int64), false,"0","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","cbccd503-4499-4b77-b07e-f124ee5b2d98");
			UIModelRuntimeFactory.AddNewUIField(this,"Item", typeof(Int64), false,"0","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","c3b3934b-a0e7-4429-a495-d9ec46c86557");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier", typeof(Int64), false,"0","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","81179dce-a20c-4f9d-8e30-1bc1b17f03b9");
			UIModelRuntimeFactory.AddNewUIField(this,"PO_DocNo", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","f885ccc8-d5d8-4f84-bd28-0cee47699fdb");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier_Code", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","16c16deb-a555-4817-8a99-a0d48df5443c");
			UIModelRuntimeFactory.AddNewUIField(this,"Supplier_Name", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","31108709-11eb-4035-b582-9fda6a82ef5c");
			UIModelRuntimeFactory.AddNewUIField(this,"Item_Code", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","1119e1e7-f54b-4be7-a35b-8fa4d336b86f");
			UIModelRuntimeFactory.AddNewUIField(this,"Item_Name", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","c09f1107-d299-404e-ad80-17878c942671");
			UIModelRuntimeFactory.AddNewUIField(this,"Qty", typeof(Decimal), false,"0","System.Decimal", "", false,false, false, "",false,(UIFieldType)1,"91031687-94bb-4988-a939-df7bf999ef4f","cd75101f-a1b5-4d69-a96d-414d7770223a");
			UIModelRuntimeFactory.AddNewUIField(this,"Price", typeof(Decimal), false,"0","System.Decimal", "", false,false, false, "",false,(UIFieldType)1,"91031687-94bb-4988-a939-df7bf999ef4f","6041c01f-94d4-4a9d-adc6-a51626fab95e");
			UIModelRuntimeFactory.AddNewUIField(this,"DocLineNo", typeof(Int32), true,"","System.Int32", "", false,false, false, "",false,(UIFieldType)1,"d7c6031e-d3fe-41aa-a397-5edd86c10cae","5dbd7a8b-b562-47c3-9078-307e36a371e5");
			UIModelRuntimeFactory.AddNewUIField(this,"DocSubLineNo", typeof(Int32), true,"","System.Int32", "", false,false, false, "",false,(UIFieldType)1,"d7c6031e-d3fe-41aa-a397-5edd86c10cae","4e7c1106-f8f5-4671-9367-4b158ceccea1");
			UIModelRuntimeFactory.AddNewUIField(this,"POShipLine", typeof(Int64), true,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","e2bb7330-5b9b-40dc-8b90-aec41deaf5de");


			this.CurrentFilter = new POShipLineDataViewDefaultFilterFilter(this);
		}
		#endregion
		
		#region override method
		protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
		{
			return new POShipLineDataViewRecord(builder);
		}
		#endregion

		#region new method
		public new POShipLineDataViewRecord FocusedRecord
		{
			get { return (POShipLineDataViewRecord)base.FocusedRecord ; }
			set { base.FocusedRecord = value ; }
		}
		public new POShipLineDataViewRecord AddNewUIRecord()
		{	
			return (POShipLineDataViewRecord)base.AddNewUIRecord();
		}
		public new POShipLineDataViewRecord NewUIRecord()
		{	
			return (POShipLineDataViewRecord)base.NewUIRecord();
		}
		#endregion 

	}

	[Serializable]
	public class POShipLineDataViewRecord : UIRecord
	{
		#region Constructor
		public POShipLineDataViewRecord(IUIRecordBuilder builder):base(builder)
		{
		}
		private POShipLineDataViewView uiviewPOShipLineDataView
		{
			get { return (POShipLineDataViewView)this.ContainerView; }
		}
		protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
		{
			return new POShipLineDataViewRecord(builder);
		}
		#endregion

		#region property
		
		
		public  Int64 ID
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldID] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewPOShipLineDataView.FieldID);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldID] = value;
			}
		}
		
		
		public  DateTime CreatedOn
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldCreatedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewPOShipLineDataView.FieldCreatedOn);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldCreatedOn] = value;
			}
		}
		
		
		public  String CreatedBy
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldCreatedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldCreatedBy);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldCreatedBy] = value;
			}
		}
		
		
		public  DateTime ModifiedOn
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldModifiedOn] ;
				//return (DateTime)value;
				return GetValue<DateTime>(this.uiviewPOShipLineDataView.FieldModifiedOn);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldModifiedOn] = value;
			}
		}
		
		
		public  String ModifiedBy
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldModifiedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldModifiedBy);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldModifiedBy] = value;
			}
		}
		
		
		public new Int64 SysVersion
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldSysVersion] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewPOShipLineDataView.FieldSysVersion);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldSysVersion] = value;
			}
		}
		
		
		public  Int64 PO
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldPO] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewPOShipLineDataView.FieldPO);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldPO] = value;
			}
		}
		
		
		public  Int64 Item
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldItem] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewPOShipLineDataView.FieldItem);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldItem] = value;
			}
		}
		
		
		public  Int64 Supplier
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldSupplier] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewPOShipLineDataView.FieldSupplier);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldSupplier] = value;
			}
		}
		
		
		public  String PO_DocNo
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldPO_DocNo] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldPO_DocNo);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldPO_DocNo] = value;
			}
		}
		
		
		public  String Supplier_Code
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldSupplier_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldSupplier_Code);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldSupplier_Code] = value;
			}
		}
		
		
		public  String Supplier_Name
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldSupplier_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldSupplier_Name);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldSupplier_Name] = value;
			}
		}
		
		
		public  String Item_Code
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldItem_Code] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldItem_Code);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldItem_Code] = value;
			}
		}
		
		
		public  String Item_Name
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldItem_Name] ;
				//return (String)value;
				return GetValue<String>(this.uiviewPOShipLineDataView.FieldItem_Name);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldItem_Name] = value;
			}
		}
		
		
		public  Decimal Qty
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldQty] ;
				//return (Decimal)value;
				return GetValue<Decimal>(this.uiviewPOShipLineDataView.FieldQty);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldQty] = value;
			}
		}
		
		
		public  Decimal Price
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldPrice] ;
				//return (Decimal)value;
				return GetValue<Decimal>(this.uiviewPOShipLineDataView.FieldPrice);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldPrice] = value;
			}
		}
		
		
		public  Int32? DocLineNo
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldDocLineNo] ;
				//return (Int32?)value;
				return GetValue<Int32?>(this.uiviewPOShipLineDataView.FieldDocLineNo);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldDocLineNo] = value;
			}
		}
		
		
		public  Int32? DocSubLineNo
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldDocSubLineNo] ;
				//return (Int32?)value;
				return GetValue<Int32?>(this.uiviewPOShipLineDataView.FieldDocSubLineNo);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldDocSubLineNo] = value;
			}
		}
		
		
		public  Int64? POShipLine
		{
			get{
				//object value = this[this.uiviewPOShipLineDataView.FieldPOShipLine] ;
				//return (Int64?)value;
				return GetValue<Int64?>(this.uiviewPOShipLineDataView.FieldPOShipLine);
			}
			set{
				this[this.uiviewPOShipLineDataView.FieldPOShipLine] = value;
			}
		}
		#endregion
	}
	
	[Serializable]
	public class POShipLineDataViewDefaultFilterFilter : UIFilter
	{
		#region Constructor
		public POShipLineDataViewDefaultFilterFilter(IUIView view) 
			: base("DefaultFilter",view,@"",@"")
		{
			InitClass();
		}
		//for Clone Constructor
		private POShipLineDataViewDefaultFilterFilter()
			: base("DefaultFilter",null,"","")
		{}
		protected override IUIFilter CreateCloneInstance()
		{
			return new POShipLineDataViewDefaultFilterFilter();
		}
		#endregion

		#region property
		#endregion
		
		#region function
		private void InitClass()
		{
		}
		#endregion

	}



}